import {baseAjax} from '../baseAjax'

// 重置密码
export function resetPwd (id, successHandle, failHandle) {
  let _url = '/ent/user/reset/password/' + id
  baseAjax(_url, {}, 'put', successHandle, failHandle)
}

// 修改账号
export function updateAccount (data, successHandle, failHandle) {
  baseAjax('/ent/user', data, 'put', successHandle, failHandle)
}

// 删除账号
export function deleteAccount (id, successHandle, failHandle) {
  let _url = '/ent/user/' + id
  baseAjax(_url, {}, 'delete', successHandle, failHandle)
}

// 删除账号校验
export function verifyDeleteAccount (id, successHandle, failHandle) {
  let _url = `/ent/user/delete/verify/${id}`
  baseAjax(_url, {}, 'delete', successHandle, failHandle)
}
